<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/global/document" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.documentConfig}</h1>
    </div>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width:15px">
                <input type="checkbox" id="J_checkAll" title="全选" value="0">
              </th>
              <th style="">{$Think.lang.id}</th>
              <th style="">{$Think.lang.title}</th>
              <th style="">{$Think.lang.link}</th>
              <th style="">{$Think.lang.create}</th>
              <th style="">{$Think.lang.update}</th>
              <th style="">{$Think.lang.isActive}</th>
              <th style="">{$Think.lang.isOnFooter}</th>
              <th style="">{$Think.lang.order}</th>
              <th style="">{$Think.lang.operating}</th>
            </tr>
          </thead>
          <tbody>
            <volist id="vo" name="list">
              <tr overstyle='on' id="{$vo.document_id}" style="text-align: left;">
                <td>
                  <input type="checkbox" name="checkbox" id="checkbox2" onclick="checkon(this)" value="{$vo.document_id}">
                </td>
                <td>{$vo.document_id}</td>
                <td>{$vo.title}</td>
                <td><a target="_blank" href="{:URL('home/Public/document',array('id'=>$vo['document_id']))}">{:URL('home/Public/document',array('id'=>$vo['document_id']))}</a>
                </td>
                <td>{$vo.author}
                  <br />{$vo.ctime|date="Y-m-d H:i",###}
                </td>
                <td>{$vo.last_editor}
                  <br />{$vo.mtime|date="Y-m-d H:i",###}
                </td>
                <td>
                  <eq name="vo.is_active" value="1">{$Think.lang.yes}
                    <else />{$Think.lang.no}</eq>
                </td>
                <td>
                  <eq name="vo.is_on_footer" value="1">{$Think.lang.yes}
                    <else />{$Think.lang.no}</eq>
                </td>
                <td>
                  <a href="javascript:;" class="ico_top" onclick="move('{$vo['document_id']}','up');">
                    <img src="__PUBLIC__/admin/images/zw_img.gif">
                  </a>&nbsp;
                  <a href="javascript:;" class="ico_btm" onclick="move('{$vo['document_id']}','down');">
                    <img src="__PUBLIC__/admin/images/zw_img.gif">
                  </a>
                </td>
                <td><a href="{:URL('admin/Global/editDocument',array('id'=>$vo['document_id']))}">{$Think.lang.editor}</a>|
                  <a href="javascript:;" onclick="deleteDocument('{$vo.document_id}')">{$Think.lang.delete}</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
      <div class="datas-ft">
        <div class="actions">
          <a href="javascript:;" class="btn" id="J_add">{$Think.lang.add}</a>
          <a href="javascript:;" class="btn" id="J_del">{$Think.lang.delete}</a>
        </div>
      </div>
    </div>

  </div>
</body>

</html>
